package com.lagou.code.controller;

import com.lagou.code.service.CodeService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/code")
public class CodeController {

  @Autowired
  private CodeService codeService;

  @RequestMapping("/create/{email}")
  public Boolean createCode(@PathVariable String email) {
    return codeService.create(email);
  }

}
